package com.hnu.store.mapper;

import com.hnu.store.entity.SearchRecord;
import java.util.ArrayList;

public interface SearchRecordMapper {
    /**
     * 插入数据库存储搜索记录
     * @param searchRecord
     * @return
     */
    Integer insertRecord(SearchRecord searchRecord);

    /**
     * 删除数据库存储搜索记录
     * @param searchRecord
     * @return
     */

    Integer deleteRecord(SearchRecord searchRecord);

    /**
     * 寻找相同的搜索记录
     * @param searchRecord
     * @return
     */
    SearchRecord findSameRecord(SearchRecord searchRecord);

    ArrayList<SearchRecord> getSearchRecord();

}
